package lab02.test07;

public class Person {
    private String name;
    private int ages;
    private String idNum;

    public Person(){}

    public Person(String name,int age,String idNum){
        this.ages=age;
        this.name=name;
        this.idNum=idNum;
    }

    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }



    public int getAge() {
        return ages;
    }


    public void setAge(int age) {
        this.ages = age;
    }


    public String getIdNum() {
        return idNum;
    }


    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }


    public String toString() {
        return "姓名为："+name+"\n"+"年龄为："+ages+"\n"+"身份证号为："+idNum;
    }

}

